home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
music
/
5mods_2.arj
/
APOLO14.MOD
next >
Wrap
Text File
|
1994-01-20
|
5KB
|
93 lines
30/137...... Apolo14.423 SysOp can send SSM to all or one from Main. v1.0
Name........ /┤PΘ££Θ #1 @2938
Date........ Mon Jan 03 03:42:39 1994
From........ WWIVNet - Retreat of the Gods [209-537-2808]
Location.... Central California
┌──────────────────────────────────────────────────────Filo─Header─(c)────┐
│ Mod Name: Apollo14.423 Mod Authors: Apollo 1@92938 WWIVNet & BRNet │
│ Difficulty: █▒▒▒▒▒▒▒▒▒ 1@2939 TARDIS,TERRA,ICE & Mas Nets │
│ WWIV Version: v4.23 Date: 12/09/93 │
│ Files Affected: BBS.C │
│ SysOp can send SSM to all users, or just one, from mainmenu. │
└─────────────────────────────────────────────────────────────────────────┘
Extended Description:
adds //SSM and //SSM <username or number>
Updated for v4.23
LEGEND:
= old code, Search for this
+ new code
- Remove or comment out this line
> Modified From Virgin Code
#include <witty disclaimer>
BACKUP your Source
Load up: BBS.C
Find: void mainmenu(void)
= if (strcmp(s,"UEDIT")==0) {
= sysoplog(get_stringx(1,10));
= uedit(usernum,0);
= }
+ if (strcmp(s,"SSM")==0) { /* Apollo14.423 */
+ nl(); /* Apollo14.423 */
+ nl(); /* Apollo14.423 */
+ prt(2,"Send a short message to everyone? ");
+ /* Apollo14.423 */
+ if (yn()) { /* Apollo14.423 */
+ nl(); /* Apollo14.423 */
+ prt(1,"Enter short message now."); /* Apollo14.423 */
+ nl(); /* Apollo14.423 */
+ prt(2,": "); /* Apollo14.423 */
+ mpl(70); /* Apollo14.423 */
+ ansic(4); /* Apollo14.423 */
+ inputl(s1,70); /* Apollo14.423 */
+ i=0; /* Apollo14.423 */
+ outstr("User: "); /* Apollo14.423 */
+ do { /* Apollo14.423 */
+ if(i%5==0) /* Apollo14.423 */
+ npr("\b\b\b\b%4d",i); /* Apollo14.423 */
+ ssm(i,0,s1); /* Apollo14.423 */
+ i++; /* Apollo14.423 */
+ } while ((i<=((status.users)+1)) && (!hangup));
+ /* Apollo14.423 */
+ nl(); /* Apollo14.423 */
+ npr("%d SSM's sent.",i); /* Apollo14.423 */
+ nl(); /* Apollo14.423 */
+ } else { /* Apollo14.423 */
+ pl("Unknown user."); /* Apollo14.423 */
+ nl(); /* Apollo14.423 */
+ } /* Apollo14.423 */
+ } /* Apollo14.423 */
+ /* Apollo14.423 */
+ if (strncmp(s,"SSM ",4)==0) { /* Apollo14.423 */
+ i=finduser1(&s[4]); /* Apollo14.423 */
+ if (i>0) { /* Apollo14.423 */
+ prt(1,"Enter short message now."); /* Apollo14.423 */
+ nl(); /* Apollo14.423 */
+ prt(2,": "); /* Apollo14.423 */
+ mpl(70); /* Apollo14.423 */
+ ansic(4); /* Apollo14.423 */
+ inputl(s1,70); /* Apollo14.423 */
+ ssm(i,0,s1); /* Apollo14.423 */
+ pl("SSM sent."); /* Apollo14.423 */
+ nl(); /* Apollo14.423 */
+ } else { /* Apollo14.423 */
+ pl("Unknown user."); /* Apollo14.423 */
+ nl(); /* Apollo14.423 */
+ } /* Apollo14.423 */
+ } /* Apollo14.423 */
=
= }
=/**************************************************/
= if (cs()) {
done.
Save, Recompile and run.
As you can see, Not so hard!